import request from '@/utils/request'

export function Get(id, args) {
  return request({
    url: `/cms/api/wp_post/${id || ''}${args && ('?' + args) || ''}`,
    method: 'get'
  })
}

export function Post(data) {
  return request({
    url: '/cms/api/wp_post/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data
  })
}

export function GetWPPostStatistics(data) {
  return request({
    url: '/cms/api/wppost_statistics/',
    headers: { 'content-type': 'application/json' },
    method: 'post',
    data: data
  })
}

